package com.wandian.demo.controller
{

	public class GameController
	{
		// static instance 
		protected static var instance:GameController=null;

		public function GameController()
		{
			super();
			if (instance != null)
				throw new Error("Only one Singleton instance should be instantiated");
			instance=this;
		}

		static public function get Instance():GameController
		{
			if (instance == null)
				instance=new GameController();
			return instance;
		}

		public function getRollXByIndex(index:int):Number
		{
			switch (index)
			{
				case 1:
					return 3;
				case 2:
					return 136;
				case 3:
					return 266;
				case 4:
					return 394;
				case 5:
					return 525;
				default:
					return 1000;
					break;

			}
		}
	}
}
